<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src\views\other_static\double_eleven_award.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../../prettify.css" />
    <link rel="stylesheet" href="../../../base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(../../../sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="../../../index.html">all files</a> / <a href="index.html">src/views/other_static/</a> double_eleven_award.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/28</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/10</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/3</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/28</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
	&lt;div class="main"&gt;
		&lt;ul v-show="querySuccess &amp;&amp; list.length"&gt;
			&lt;li v-for="item in list"&gt;
				&lt;div&gt;
					&lt;h2&gt;&lt;span&gt;{{ item.prizeShortName }}&lt;/span&gt;&lt;/h2&gt;
					&lt;div&gt;
						&lt;p class="name"&gt;{{ item.prizeName.split(item.prizeShortName)[1] || item.prizeName }}&lt;/p&gt;
						&lt;p&gt;
							&lt;span&gt;中奖时间：&lt;/span&gt;
							&lt;span&gt;{{ item.lotteryTime.split(' ')[0] }}&lt;/span&gt;
						&lt;/p&gt;
						&lt;p&gt;
							&lt;span&gt;发放时间：&lt;/span&gt;
							&lt;span v-if="item.sendStatus === 0"&gt;借款成功后发放&lt;/span&gt;
							&lt;span v-if="item.sendStatus === 1"&gt;{{ item.sendTimeString.split(' ')[0] }}&lt;/span&gt;
						&lt;/p&gt;
					&lt;/div&gt;
					&lt;i v-if="item.sendStatus === 0" class="icon"&gt;待发放&lt;/i&gt;
				&lt;/div&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
		&lt;div v-show="querySuccess &amp;&amp; !list.length" class="empty"&gt;
			&lt;img src="//hh.ppdaicdn.com/static/images/other_static/shuangshiyi/prize.png" alt="prize"&gt;
			&lt;p&gt;还没有抽到奖品哦～&lt;/p&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
	export default {
		'name': 'view-other_static-double_eleven_award',
		'metaInfo': {
			'title': '上市送红包'
		},
		data() {
<span class="cstat-no" title="statement not covered" >			return {</span>
				'token': this.$getCookie('huankachaoren'),
				'querySuccess': false,
				'list': [],
				'dynData': {
					'shareData': null,
					'bkg': []
				}
			};
		},
		'methods': {
			getDynamicData() {
				let millisecondsPerSecond =<span class="cstat-no" title="statement not covered" > 1000</span>,
					secondsPerMinute =<span class="cstat-no" title="statement not covered" > 60</span>,
					minutesPerVersion =<span class="cstat-no" title="statement not covered" > 5</span>;
				let dynamicScriptDelay =<span class="cstat-no" title="statement not covered" > 500</span>;
				let $dynamicScript =<span class="cstat-no" title="statement not covered" > document.createElement('script')</span>;
<span class="cstat-no" title="statement not covered" >				$dynamicScript.type = 'text/javascript';</span>
<span class="cstat-no" title="statement not covered" >				$dynamicScript.async = true;</span>
<span class="cstat-no" title="statement not covered" >				$dynamicScript.src = `${document.location.protocol}//hh.ppdaicdn.com/static/scripts/other_static/double_eleven.js</span>
					?v=${parseInt(new Date().getTime() / millisecondsPerSecond / secondsPerMinute / minutesPerVersion, 10)}`;
<span class="cstat-no" title="statement not covered" >				document.body.appendChild($dynamicScript);</span>
<span class="cstat-no" title="statement not covered" >				this.dynData = window.dynData || this.dynData;</span>
<span class="cstat-no" title="statement not covered" >				if (!this.dynData.shareData || !this.dynData.bkg.length) {</span>
<span class="cstat-no" title="statement not covered" >					setTimeout(() =&gt;<span class="fstat-no" title="function not covered" > {</span></span>
<span class="cstat-no" title="statement not covered" >						this.getDynamicData();</span>
					}, dynamicScriptDelay);
<span class="cstat-no" title="statement not covered" >					return;</span>
				}
<span class="cstat-no" title="statement not covered" >				this.showShare();</span>
			},
			showShare() {
<span class="cstat-no" title="statement not covered" >				try {</span>
<span class="cstat-no" title="statement not covered" >					window.AppBridge.shareData(JSON.stringify(this.dynData.shareData));</span>
				} catch(ex) {
<span class="cstat-no" title="statement not covered" >					console.log('需要在APP中使用');</span>
				}
			},
			getAward() {
<span class="cstat-no" title="statement not covered" >				this.$post('/api/activity/listRecord.htm', {}).then(data =&gt;<span class="fstat-no" title="function not covered" > {</span></span>
<span class="cstat-no" title="statement not covered" >					if (data.result !== 0) {</span>
<span class="cstat-no" title="statement not covered" >						this.querySuccess = true;</span>
<span class="cstat-no" title="statement not covered" >						return;</span>
					}
<span class="cstat-no" title="statement not covered" >					this.list = data.content || [];</span>
<span class="cstat-no" title="statement not covered" >					this.querySuccess = true;</span>
				}, () =&gt;<span class="fstat-no" title="function not covered" > {</span>
<span class="cstat-no" title="statement not covered" >					console.log('请求失败，请稍后再试');</span>
				});
			}
		},
		created() {
<span class="cstat-no" title="statement not covered" >			this.getDynamicData();</span>
<span class="cstat-no" title="statement not covered" >			this.getAward();</span>
		}
	};
&lt;/script&gt;
&nbsp;
&lt;style scoped type="text/scss"&gt;
	ul {
		margin: 6% 7.6%;
		padding: 0;
		list-style-type: none;
		li {
			position: relative;
			margin: 3.47% 0;
			&amp;::after {
				content: "";
				display: block;
				padding-top: 35.2756%;
			}
			&gt; div {
				position: absolute;
				top: 0;
				left: 0;
				width: 96.2204%;
				height: 88.8393%;
				padding: 1.4173% 1.8898% 2.5197%;
				background: url(//hh.ppdaicdn.com/static/images/other_static/shuangshiyi/award.png) center no-repeat;
				background-size: cover;
				h2,
				p {
					margin: 0;
					color: #ffffff;
				}
				h2 {
					display: flex;
					flex-flow: column nowrap;
					justify-content: center;
					float: left;
					width: 27.0492%;
					height: 100%;
					text-align: center;
					font-size: 25px;
				}
				&gt; div {
					display: flex;
					flex-flow: column nowrap;
					justify-content: space-around;
					overflow: hidden;
					height: 75%;
					padding: 4.0983% 9.5082%;
				}
				p {
					overflow: hidden;
					font-size: 12px;
					white-space: nowrap;
					text-overflow: ellipsis;
					&amp;.name {
						font-size: 18px;
					}
				}
				i {
					position: absolute;
					top: 18%;
					right: 6%;
					height: 20px;
					padding: 0 1em;
					border-radius: 10px;
					color: #fe6a59;
					font-style: normal;
					font-size: 12px;
					line-height: 20px;
					background-color: #ffffff;
				}
			}
		}
	}
	.empty {
		position: absolute;
		top: 35%;
		left: 0;
		width: 100%;
		color: #606060;
		text-align: center;
		img {
			display: block;
			width: 22%;
			margin: 0 auto;
		}
	}
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Jan 16 2018 10:36:09 GMT+0800 (中国标准时间)
</div>
</div>
<script src="../../../prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="../../../sorter.js"></script>
</body>
</html>
